import { ApiProperty } from '@nestjs/swagger';

export class FileUploadDto {
  @ApiProperty({ type: String, format: 'binary', description: '文件信息' })
  file: any;
}
export class uploadIdDto {
  @ApiProperty({ type: String, description: '上传id' })
  uploadId: string;
}
export class ChunkFileDto {
  @ApiProperty({ type: String, description: '索引' })
  index: number;
  @ApiProperty({ type: String, description: '总切片数' })
  totalChunks: number;
  @ApiProperty({ type: String, description: '上传记录id' })
  uploadId: string;
  @ApiProperty({ type: String, description: '文件名称' })
  fileName: string;
}

export class ChunkMergeFileDto {
  @ApiProperty({ type: String, description: '上传id' })
  uploadId: string;
  @ApiProperty({ type: String, description: '文件名称' })
  fileName: string;
}
